package top.huhuiyu.spirngboot2.total.service.message;

import top.huhuiyu.spirngboot2.total.base.BasePageResult;
import top.huhuiyu.spirngboot2.total.base.BaseResult;
import top.huhuiyu.spirngboot2.total.base.PageBean;
import top.huhuiyu.spirngboot2.total.entity.message.TbMessage;

import java.util.List;

public interface TbMessageService {
    BaseResult add(TbMessage tbMessage);

    BasePageResult<TbMessage> queryByKey(Integer mid, PageBean pageBean);

    BasePageResult<List<TbMessage>> query(PageBean pageBean, TbMessage tbMessage, Integer orderBy);
}
